from django.contrib import admin
from django.urls import path, include
from django.views.generic import TemplateView
from movies import views as movies_views

# 自定义管理站点
admin.site.site_header = '用户信息管理'
admin.site.site_title = '用户管理'
admin.site.index_title = '管理用户信息'

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', TemplateView.as_view(template_name='home.html'), name='home'),
    path('movies/', include('movies.urls')),
    path('accounts/login/', movies_views.user_login, name='login'),
    path('accounts/logout/', movies_views.user_logout, name='logout'),
    path('accounts/register/', movies_views.register, name='register'),
    path('login/', movies_views.user_login, name='login_short'),
    path('register/', movies_views.register, name='register_short'),
] 